//
//  HomeCollectionReusableView.m
//  News
//
//  Created by weige on 16/5/30.
//  Copyright © 2016年 weige. All rights reserved.
//

#import "HomeCollectionReusableView.h"

@implementation HomeCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self builUI];
           }
    return self;
}

-(void)builUI

{
    SDCycleScrollView *sc=[SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 110) imageURLStringsGroup:[HeadView loadDataImage:@"img"]];
    
    //SDCycleScrollView *sc=[SDCycleScrollView  cycleScrollViewWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 110) delegate:self placeholderImage:[UIImage imageNamed:@"photo.jpg"]];
    sc.titlesGroup=[HeadView loadDataImage:@"name"];
    sc.autoScrollTimeInterval=3.0;
    sc.currentPageDotImage=[UIImage imageNamed:@"v2_home_cycle_dot_selected"];
    [self addSubview:sc];
    
    
    HotView *hot=[[HotView alloc]init];
    float hotX=0;
    hot.backgroundColor=[UIColor whiteColor];
    float hotY=CGRectGetMaxY(sc.frame);
    hot.frame=CGRectMake(hotX, hotY, SCREEN_WIDTH, CGRectGetHeight(hot.subviews[0].frame)+10);
    //NSLog(@"wwwww=%f",CGRectGetHeight(hot.subviews[0].frame));
    [self addSubview:hot];

}
@end
